//
//  MineTargetWeightTVCell.m
//  Shine
//
//  Created by dllo on 16/3/12.
//  Copyright © 2016年 王斌. All rights reserved.
//

#import "MineTargetWeightTVCell.h"
#define WIDTHCVCELL self.contentView.frame.size.width
#define HEIGHTCVCELL self.contentView.frame.size.height
@implementation MineTargetWeightTVCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}

- (void)createCell{
    self.targetButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.contentView addSubview:self.targetButton];
    self.imageButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.contentView addSubview:self.imageButton];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.targetButton.frame = CGRectMake(10, 30, 130, 30);
    self.imageButton.frame = CGRectMake(WIDTHCVCELL-80, 20, 50, 50);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
